//
//  ImageViewStack.m
//  NewsReader
//
//  Created by blacksun on 10-11-20.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import "ImageViewStack.h"


@implementation ImageViewStack

-(id)init{
	if(self = [super init]){
		stack = [[NSMutableArray alloc] init];
		return self;
	}
	return nil;
}
-(void)dealloc{
	[stack release];
	[super dealloc];
}

-(void)push:(UIImageView *)imageView{
	[stack addObject:imageView];
}
-(UIImageView *)pop{
	UIImageView *lastImageView =  [stack lastObject];
	[stack removeLastObject];
	return lastImageView;
}

@end
